import http from "@/utils/request";

//查询栏目列表
export const getProgram = async (data) => {
	return http.post<any>(`/member/program/page`, data)
}

//查询文章列表
export const getArticle = async (data) => {
	return http.post<any>(`/member/article/page`, data)
}

//获取评价建议列表
export const getSuggestionList = async (status) => {
	return http.get<any>(`/member/comment/get-list-by-user-id/${status}`, {})
}

//添加评价建议
export const setSuggestion = async (data) => {
	return http.post<any>(`/member/comment/create`, data)
}

//评价建议
export const getSuggestionDetail = async (id) => {
	return http.get<any>(`/member/comment/get-by-id/${id}`, {})
}

//消息 ==> 评价建议
export const getMessageDetail = async (id) => {
	return http.get<any>(`/member/comment/get-by-message-id/${id}`, {})
}

//消息已读
export const setMessage = async (id:number) => {
	return http.get<any>(`/member/get-by-message-id/${id}`, {})
}
